package com.huluobo.a2212mdmdemo

import com.amap.api.location.AMapLocationClient
import com.huluobo.lib_base.BaseApp
import com.hyphenate.chat.EMClient
import com.hyphenate.chat.EMOptions
import com.tencent.mmkv.MMKV
import dagger.hilt.android.HiltAndroidApp


/**
 *  Created by LC on 2025/5/24.
 *moroks#2211mouthdemo
 */

@HiltAndroidApp
class MDMApp : BaseApp() {
    override fun onCreate() {
        super.onCreate()
        //mmkv初始化
        MMKV.initialize(this)
        //地图的初始化权限
        AMapLocationClient.updatePrivacyShow(this, true, true)
        AMapLocationClient.updatePrivacyAgree(this, true)
        val options = EMOptions()
        options.appKey = "moroks#2211mouthdemo"
        EMClient.getInstance().init(context, options);
    }
}